<?php if(!isset($act))  $act='saveInventory'; ?>

<div id="main">

  <div id="register">
  <h1><?=($act=='saveInventory')?"Create":"Update"?> Inventory</h1>  
  
  <div style="color:#903; text-align:left;"><?=$cmd?></div>
  
<form action="?page=addInventory&sub=<?=$act?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?=$userInfo['productID']?>"  />
  <div class="field_register">Product Name :
    <input name="productname" type="text" class="register_field" id="productname" value="<?=$userInfo['productName']?>" />
  </div>
  
  <div class="field_register">Opening Balance :
    <input name="openingbalance" type="text" class="register_field" id="openingbalance" value="<?=$userInfo['openingBalance']?>" />
  </div>
  
  <div class="field_register">Product Category :
    <input name="productcategory" type="text" class="register_field" id="productcategory" value="<?=$userInfo['productCategory']?>" />
  </div>

  <div class="field_register">Product Deail:
    <input name="productdeail" type="text" class="register_field" id="productdeail" value="<?=$userInfo['productDetail']?>" />
  </div>

  
  <div class="field_register">Product Quantity :
    <input name="productquantity" type="text" class="register_field" id="productquantity" value="<?=$userInfo['productQuantity']?>" />
  </div>

  <div class="field_register">Cost Per Unit :
    <input name="productcostperunit" type="text" class="register_field" id="productcostperunit" value="<?=$userInfo['productCostPerUnit']?>" />
  </div>

  <div class="field_register">Price Per Unit :
    <input name="productpriceperunit" type="text" class="register_field" id="productpriceperunit" value="<?=$userInfo['productPricePerUnit']?>" />
  </div>
  
  <div class="field_register">Product Picture  :
    <input name="productpicture" type="text" class="register_field" id="productpicture" value="<?=$userInfo['productPicture']?>" />
  </div>
  
  <div class="field_register">Product Unit :
    <select name="productunit" class="register_field">
      <option value="">Select</option>
      <option value="Product Unit" <?php if($userInfo['productUnit']=='Product Unit') echo "selected='selected'"; ?>>Product unit</option>
      <option value="Kg" 
		<?php if($userInfo['productUnit']=='Kg') echo "selected='selected'"; ?>>Kg</option>
      <option value="Ltr" <?php if($userInfo['productUnit']=='Ltr') echo "selected='selected'"; ?>>Ltr</option>
      <option value="Pounds" <?php if($userInfo['productUnit']=='Pounds') echo "selected='selected'"; ?>>Pounds</option>
      <option value="Meter" <?php if($userInfo['productUnit']=='Meter') echo "selected='selected'"; ?>>Meter</option>
      <option value="Foot" <?php if($userInfo['productUnit']=='Foot') echo "selected='selected'"; ?>>Foot</option>
    </select>
  </div>
  
  <div class="field_register">Product Expiry Date  :
    <input name="productexpirydate" type="text" class="register_field" id="productexpirydate" value="<?=$userInfo['productExpiryDate']?>" />
  </div>
  
  
  
   <div class="field_register"></div>
  
   <div class="field_register"></div>
    <div class="field_register">
      <input type="submit" class="register_button" value="<?=($act=='saveInventory')?"Save":"Update"?>"  />
    </div>
</form>
  
  </div>

</div>